package cn.tedu.spring.example;

import org.springframework.stereotype.Component;

/**
 * Component注解: 添加在类上,将此类交由 Spring 来管理
 */
@Component
public class User {
    public void userRun(){
        System.out.println("人生得意须尽欢");
    }
}
